package com.pomelo.kill.mapper;

import com.pomelo.kill.model.Userinfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserinfoMapper {
    int deleteByPrimaryKey(@Param("id") Integer id, @Param("openid") String openid);

    int insert(Userinfo record);

    int insertSelective(Userinfo record);

    Userinfo selectByPrimaryKey(@Param("id") Integer id, @Param("openid") String openid);

    int updateByPrimaryKeySelective(Userinfo record);

    int updateByPrimaryKey(Userinfo record);

    Userinfo selectById(Integer id);

    Userinfo selectByOpenid(String openid);
}